import pygtk
pygtk.require('2.0')
import gtk

omEnv=False
try:
    import mokoui
    omenv=True
except:
    pass

def getScrolledWidget():
    if omEnv == False:
        scrolledWindow = gtk.ScrolledWindow()
        scrolledWindow.set_policy(gtk.POLICY_AUTOMATIC, gtk.POLICY_AUTOMATIC)
        return scrolledWindow
    else:
        return mokoui.FingerScroll()
    
def getScrolledWindow():
    scrolledWindow = gtk.ScrolledWindow()
    scrolledWindow.set_policy(gtk.POLICY_AUTOMATIC, gtk.POLICY_AUTOMATIC)
    return scrolledWindow